@layout("/backend/common/_container.html"){
<style>
    .dhcc-form .ele {
        width: 70%;
        padding-right: 0px;
    }
</style>
<div class="dhcc-form">

    <form method='post' id="cdcLocationInfoForm" name="cdcLocationInfoForm" enctype="multipart/form-data">

        <#Hidden id="id" value="" />
        <div class="row row-lg">
            <div class="col-sm-6">
                <#Input id="xcode" name="索引码" />
            </div>
            <div class="col-sm-6">
                <#Input id="code" name="代码" />
            </div>
        </div>
        <div class="row row-lg">
            <div class="col-sm-6">
                <#Input id="description" name="描述" />
            </div>
            <div class="col-sm-6">
                <#Input id="description2" name="别名" />
            </div>
        </div>
        <div class="row row-lg">
            <div class="col-sm-6">
                <#SelectForm id="busLocTypeId" name="类型" url="/cdc/cdcdictionary/query/HisBase/bus_loc_type" key="id"
                    text="description" hasEmpty="false" width="220px"/>
            </div>
            <div class="col-sm-6">
                <#SelectForm id="busLocRoleId" name="角色" url="/cdc/cdcdictionary/query/HisBase/bus_loc_role" key="id"
                text="description" hasEmpty="false" width="220px"/>
            </div>
        </div>
        <div class="row row-lg">
            <div class="col-sm-6">
                <#SwitchBox id="isOper" name="手术科室" value="0"/>
            </div>
            <div class="col-sm-6">
                <#SwitchBox id="isNicu" name="新生儿病房" value="0"/>
            </div>
        </div>
        <div class="row row-lg">
            <div class="col-sm-6">
                <#SwitchBox id="isIcu" name="ICU病房" value="0"/>
            </div>
            <div class="col-sm-6">
                <#SelectForm id="busLocIcuId" name="ICU类型" url="/cdc/cdcdictionary/query/HisBase/bus_loc_icu" key="id"
                text="description" hasEmpty="false" width="220px"/>
            </div>
        </div>
        <div class="row row-lg">
            <div class="col-sm-6">
                <#SelectForm id="hospitalId" name="所属院区" url="/cdc/cdchospital/query" key="id" text="description" hasEmpty="false" width="220px" onSelect="CdcLocationInfoDlg.selectHosp"/>
            </div>
            <div class="col-sm-6">
                <#LookUpLoc id="parLocId" name="父指针" />
            </div>
        </div>
        <div class="row row-lg">
            <div class="col-sm-6">
                <#LookUpDept id="sysDeptId" name="系统部门" />
            </div>
            <div class="col-sm-6">
                <#SwitchBox id="isActive" name="是否有效"/>
            </div>
        </div>
        <div class="row row-lg">
            <div class="col-sm-6">
                <#SelectForm id="dataId" name="数据类型" url="/cdc/cdcdata/query" key="id" text="description" hasEmpty="false" width="220px" params="{'code':'HisBase'}"/>
            </div>
        </div>
		
        <div class="toolbar">
            <#Button name="保存" id="ensure" icon="icon-w-save" clickFun="CdcLocationInfoDlg.addSubmit()" />
            <#Button btnCss="l-bt-red" name="关闭" id="cancel" icon="icon-w-close"
                clickFun="CdcLocationInfoDlg.close()" />
        </div>

    </form>
</div>
<script src="${ctxPath}/static/backend/cdc/cdclocation/cdclocation_info.js"></script>
@}